<?php echo $this->doctype(Zend_View_Helper_Doctype::XHTML1_TRANSITIONAL); ?>
<html>
 <head>
  <?php echo $this->headTitle('hitech'); ?>
  <?php echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8'); ?>
  <?php echo $this->headLink()->appendStylesheet($this->baseUrl . 'design/css/style.css'); ?>
  <?php echo $this->headScript(); ?>
	<script type="text/javascript" src="/js/jquery-1.3.2.js"></script>
	<script type="text/javascript" src="/js/mbMenu/inc/jquery.metadata.js"></script>
	<script type="text/javascript" src="/js/mbMenu/inc/mbMenu.js"></script>
	<script type="text/javascript" src="/js/mbMenu/inc/styleswitch.js"></script>
	<script type="text/javascript" src="/js/mbMenu/inc/jquery.hoverIntent.js"></script>
	<link rel="stylesheet" type="text/css" href="/js/mbMenu/css/menu.css" title="styles1"  media="screen" />

	<style type="text/css">
		body .style a{
			color:#243AD7;
			font-family:sans-serif;
			font-size:13px;
			text-decoration:none;
		}
	</style>

	<script type="text/javascript">

		$(function(){
			$(".myMenu").buildMenu(
			{
				additionalData:"pippo=1",
				menuWidth:200,
				openOnRight:false,
				menuSelector: ".menuContainer",
			        containment:"wrapper",
				iconPath:"ico/",
				hasImages:true,
				fadeInTime:100,
				fadeOutTime:300,
				adjustLeft:2,
				minZindex:"auto",
				adjustTop:10,
				opacity:.95,
				shadow:true,
				closeOnMouseOut:true,
				closeAfter:1000
			});

		});


		//this function get the id of the element that fires the context menu.	
		function testForContextMenu(el){
			if (!el) el= $.mbMenu.lastContextMenuEl;
			alert("the ID of the element is:   "+$(el).attr("id"));
		}

	</script>

</head>
<body>
    <div id="menu">
        <?php echo $this->partial('menu.tpl'); ?>
    </div>
    <div id="main">
        <div id="left">
            <!-- <div style = "margin:5px;">Выбрать город
            	<select>
            		<?php echo getTownsOptionList(); ?>
            	</select>
            </div>-->
            <div>
           		<?php
           			$arr = explode ("/", $_SERVER['REQUEST_URI']);
           			if (($arr[1]=="admin")&&($arr[2]!="login"))	echo $this->partial('vmenu.tpl'); 
           		 ?>
            </div>
            <div id = "copy">(c) San <a href = "http://zendframework.ru">http://zendframework.ru</a></div>
        </div>
        <div id="content">
        	<?php echo $this->layout()->messages; ?>
        	<?php echo $this->layout()->content; ?>
        </div>
    </div>
    <div id="footer">
        <?php echo $this->partial('footer.tpl'); ?>
    </div>
</body>
</html>